package com.zhufeng.jvm.classloader;

public class MyTest6 {

	public static void main(String[] args) {
		System.out.println("a: " + Singleton.a);
		System.out.println("b: " + Singleton.b);
	}

}

class Singleton {
	public static int a;
	
	private static Singleton singleton = new Singleton();
	
	private Singleton() {
		a++;
		b++;
	}
	
	public static int b = 0;
	
	public static Singleton getSingleton() {
		return singleton;
	}
}